<?php

namespace Biz\model\brandRights;

class BrandRightsRecored extends \Doraemon\pockets\datebase\BaseDbModel
{
    const _CONFIG_FILE_ = 'db_store';

    const _CONFIG_SELECT_ = 'db_store';

    const _DATABASE_ = 'store';

    const _TABLE_NAME = 'brand_rights_recored_new';

    //记录类型(0:默认1:品牌套餐2:购买权益3:消费 4:退返 5 :运营管理员)
    const RECORED_TYPE_NORMAL = 0;//默认（系统初始化？？）
    const RECORED_TYPE_PACKAGE = 1;//品牌套餐
    const RECORED_TYPE_BUY = 2;//购买权益
    const RECORED_TYPE_CONSUME = 3;//消费
    const RECORED_TYPE_REFUND = 4;//退回
    const RECORED_TYPE_ADMIN = 5;//运营管理员
    const RECORED_TYPE_EXPIRE = 6;//品牌过期
    const RECORED_TYPE_LEVEL = 7;//品牌等级权益
    const RECORED_TYPE_LEVEL_RECOVERY = 8;//品牌等级权益恢复
    const RECORED_TYPE_LEVEL_DEGRADE = 9;//品牌等级降级

    const RECORED_TYPE = [
        self::RECORED_TYPE_NORMAL => '默认',
        self::RECORED_TYPE_PACKAGE => '套餐',
        self::RECORED_TYPE_BUY => '购买',
        self::RECORED_TYPE_CONSUME => '消费',
        self::RECORED_TYPE_REFUND => '退回',
        self::RECORED_TYPE_ADMIN => '管理员操作',
        self::RECORED_TYPE_EXPIRE => '品牌过期',
        self::RECORED_TYPE_LEVEL_RECOVERY => '品牌等级权益恢复',
        self::RECORED_TYPE_LEVEL_DEGRADE => '品牌等级降级',
    ];

    const OPERATE_USER_TYPE_SYS = 0;//系统
    const OPERATE_USER_TYPE_ADMIN = 1;//运营管理员
    const OPERATE_USER_TYPE_BRAND = 2;//品牌

    use brandRightsBasicTrait;

}